package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatWarehouseRestFeign {

    @PostMapping("/wechat/member/warehousemgr/addwarehouse")
    String addWarehouse(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);

    @GetMapping("/wechat/member/warehousemgr/getwarehouselist")
    String ajaxWarehouseList(@RequestParam("start")Integer start,@RequestParam("pageSize")Integer pageSize);

    @GetMapping("/wechat/member/warehousemgr/getwarehousedetail")
    String getWarehouseDetail(@RequestParam("warehouseId")Long warehouseId);

    @PostMapping("/wechat/member/warehousemgr/modifywarehouse")
    String modifyWarehouse(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);

    @RequestMapping("/wechat/member/warehousemgr/ajaxdelwarehouse")
    String ajaxDelWarehouse(@RequestParam("jsonObject")JSONObject jsonObject);

}
